package com.example.superoa.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the salary_count database table.
 * 
 */
@Entity
@Table(name="salary_count")
@NamedQuery(name="SalaryCount.findAll", query="SELECT s FROM SalaryCount s")
public class SalaryCount implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="count_id")
	private int countId;

	@Column(name="sc_danwei")
	private String scDanwei;

	@Column(name="sc_explain")
	private String scExplain;

	@Column(name="sc_formula")
	private BigDecimal scFormula;

	//bi-directional many-to-one association to KqAttendanceMonth
	@ManyToOne
	@JoinColumn(name="AM_ID")
	private KqAttendanceMonth kqAttendanceMonth;

	//bi-directional many-to-one association to SalaryItem
	@ManyToOne
	@JoinColumn(name="items_id")
	private SalaryItem salaryItem;

	public SalaryCount() {
	}

	public int getCountId() {
		return this.countId;
	}

	public void setCountId(int countId) {
		this.countId = countId;
	}

	public String getScDanwei() {
		return this.scDanwei;
	}

	public void setScDanwei(String scDanwei) {
		this.scDanwei = scDanwei;
	}

	public String getScExplain() {
		return this.scExplain;
	}

	public void setScExplain(String scExplain) {
		this.scExplain = scExplain;
	}

	public BigDecimal getScFormula() {
		return this.scFormula;
	}

	public void setScFormula(BigDecimal scFormula) {
		this.scFormula = scFormula;
	}

	public KqAttendanceMonth getKqAttendanceMonth() {
		return this.kqAttendanceMonth;
	}

	public void setKqAttendanceMonth(KqAttendanceMonth kqAttendanceMonth) {
		this.kqAttendanceMonth = kqAttendanceMonth;
	}

	public SalaryItem getSalaryItem() {
		return this.salaryItem;
	}

	public void setSalaryItem(SalaryItem salaryItem) {
		this.salaryItem = salaryItem;
	}

}